package com.pureut.storage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.storage.domain.PickingScheme;
import com.pureut.storage.dto.PickingSchemeDto;
import com.pureut.storage.dto.SchemeDto;
import com.pureut.storage.vo.PickingSchemeRelationVo;
import com.pureut.storage.vo.PickingSchemeVo;
import com.pureut.storage.vo.SchemeVo;

import java.util.List;

/***
 *
 * Author:C
 * Date:2022/12/21 15:25
 * @DESC
 */
public interface PickingSchemeService extends IService<PickingScheme> {

    /**
     * 获取列表
     */
    List<PickingSchemeDto> getList(PickingSchemeVo pickingSchemeVo);

    /**
     * 新增
     */
    boolean addPickingScheme(PickingSchemeVo pickingSchemeVo);

    /**
     * 修改
     */
    boolean updatePickingScheme(PickingSchemeVo pickingSchemeVo);

    /**
     * 查看
     */
    PickingSchemeDto getView(Long id);

    /**
     * 关联
     */
    boolean relation(PickingSchemeRelationVo pickingSchemeRelationVo);

    /**
     * 解绑
     */
    boolean relieve(Long id);

    /**
     * 删除
     */
    boolean deletePickingScheme(String ids);

    /**
     * 根据物料编码、关联信息、默认标志获取仓库-库区-库位-批次号信息
     */
    SchemeDto getSchemeData(SchemeVo schemeVo);
}
